// POST提交数据 测试

session.on('post', function () {

	response.write(new Date().toString());
	
	if (!request._post_ready) {
		response.write('<h2>Upload file faild! The file is too big!</h2>');
	}
	
	if (request.POST) {
		for (i in request.POST) {
			response.write('<h4>POST param: ' + i + ' = ' + request.POST[i]);
		}
	}
	
	if (request.FILE) {
		for (i in request.FILE) {
			response.write('<h4>FILE  ' + i + 'filename = ' + request.FILE[i].filename + ' (' + request.FILE[i].data.length + 'B)');
		}
	}
	
	session.end();
});